package com.ys.entity.storage;
import java.math.BigDecimal;
import java.util.Date;
import javax.persistence.Table;
import com.alibaba.fastjson.annotation.JSONField;
import com.ys.annotation.YsField;
import com.ys.entity.base.BaseEntity;
/**
*/
@Table(name="TCC_DistributeDetail", catalog="Id")
public class TccDistributeDetail extends BaseEntity<TccDistributeDetail> {

	@YsField(nameDataBase="Id", nameJava="id", typeDataBase="bigint")
	private Long id;
	@YsField(nameDataBase="BidDistribute", nameJava="bidDistribute", typeDataBase="varchar")
	private String bidDistribute;
	@YsField(nameDataBase="AllocateDetailId", nameJava="allocateDetailId", typeDataBase="bigint")
	private Long allocateDetailId;
	@YsField(nameDataBase="StockControlId", nameJava="stockControlId", typeDataBase="bigint")
	private Long stockControlId;
	@YsField(nameDataBase="StockNumAll", nameJava="stockNumAll", typeDataBase="int")
	private Integer stockNumAll;
	@YsField(nameDataBase="Num", nameJava="num", typeDataBase="int")
	private Integer num;
	@YsField(nameDataBase="SinglePrice", nameJava="singlePrice", typeDataBase="decimal")
	private BigDecimal singlePrice;
	@YsField(nameDataBase="Status", nameJava="status", typeDataBase="tinyint")
	private Integer status;
	@JSONField(format = "yyyy-MM-dd HH:mm:ss")
	@YsField(nameDataBase="CreateTime", nameJava="createTime", typeDataBase="datetime")
	private Date createTime;
	@JSONField(format = "yyyy-MM-dd HH:mm:ss")
	@YsField(nameDataBase="UpdateTime", nameJava="updateTime", typeDataBase="datetime")
	private Date updateTime;

	public Long getId() {
		return id;
	}
	public TccDistributeDetail setId(Long id) {
		this.id = id;
		return this;
	}
	public String getBidDistribute() {
		return bidDistribute;
	}
	public TccDistributeDetail setBidDistribute(String bidDistribute) {
		this.bidDistribute = bidDistribute;
		return this;
	}
	public Long getAllocateDetailId() {
		return allocateDetailId;
	}
	public TccDistributeDetail setAllocateDetailId(Long allocateDetailId) {
		this.allocateDetailId = allocateDetailId;
		return this;
	}
	public Long getStockControlId() {
		return stockControlId;
	}
	public TccDistributeDetail setStockControlId(Long stockControlId) {
		this.stockControlId = stockControlId;
		return this;
	}
	public Integer getStockNumAll() {
		return stockNumAll;
	}
	public TccDistributeDetail setStockNumAll(Integer stockNumAll) {
		this.stockNumAll = stockNumAll;
		return this;
	}
	public Integer getNum() {
		return num;
	}
	public TccDistributeDetail setNum(Integer num) {
		this.num = num;
		return this;
	}
	public BigDecimal getSinglePrice() {
		return singlePrice;
	}
	public TccDistributeDetail setSinglePrice(BigDecimal singlePrice) {
		this.singlePrice = singlePrice;
		return this;
	}
	public Integer getStatus() {
		return status;
	}
	public TccDistributeDetail setStatus(Integer status) {
		this.status = status;
		return this;
	}
	public Date getCreateTime() {
		return createTime;
	}
	public TccDistributeDetail setCreateTime(Date createTime) {
		this.createTime = createTime;
		return this;
	}
	public Date getUpdateTime() {
		return updateTime;
	}
	public TccDistributeDetail setUpdateTime(Date updateTime) {
		this.updateTime = updateTime;
		return this;
	}

	public static TccDistributeDetail tccDistributeDetail(
		String bidDistribute,
		Long allocateDetailId,
		Long stockControlId,
		Integer stockNumAll,
		Integer num,
		BigDecimal singlePrice,
		Integer status
			) {
		TccDistributeDetail entity = new TccDistributeDetail();
		entity.setBidDistribute(bidDistribute);
		entity.setAllocateDetailId(allocateDetailId);
		entity.setStockControlId(stockControlId);
		entity.setStockNumAll(stockNumAll);
		entity.setNum(num);
		entity.setSinglePrice(singlePrice);
		entity.setStatus(status);
		return entity;
	}
}